<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>加入我们 - 可漾官网</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="keywords" content="可漾  可漾官网   可漾红豆薏米水  可漾五红汤  可漾红豆水  可漾绿豆水  可漾牛蒡茶  可漾产品  山东可漾饮料有限公司" />
    <meta http-equiv="description"
      content="山东可漾饮料有限公司在以红豆薏米水为代表的谷物饮品方面已经形成了完善的研发、生产和销售体系，并申请了红豆水萃取提纯技术专利，产品一经上市便热销全网。其中抖音、淘宝平台销售额在同类产品中遥遥领先。" />
    <meta name="keywords" content="可漾  可漾官网   可漾红豆薏米水  可漾五红汤  可漾红豆水  可漾绿豆水  可漾牛蒡茶  可漾产品  山东可漾饮料有限公司" />
    <meta name="description"
      content="山东可漾饮料有限公司在以红豆薏米水为代表的谷物饮品方面已经形成了完善的研发、生产和销售体系，并申请了红豆水萃取提纯技术专利，产品一经上市便热销全网。其中抖音、淘宝平台销售额在同类产品中遥遥领先。" />
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
    <link rel="bookmark" href="../favicon.ico" />
    <meta name="viewport" content="user-scalable=yes, width=device-width, initial-scale=0.5">
    <link rel="stylesheet" href="../static/css/main.css">
    <link rel="stylesheet" href="../static/css/header.css">
    <link rel="stylesheet" href="../static/css/join.min.css">
    <link rel="stylesheet" href="../static/css/footer.min.css">
    <link rel="stylesheet" href="../static/libs/layui/css/layui.css">
    <link rel="stylesheet" href="../static/libs/layui_plug/cascader.css">
  </head>
  <header>
    <div class="nav-box">
      <div id="logo" class="fl">
        <a href="../index.html"><img src="../static/images/Logo.png" alt="可漾"></a>
      </div>
      <ul class="nav fl clear">
        <a href="../index.html" class="nav-item nav-item1">
          <span class="nav-span">首页</span>
        </a>
        <a href="./about.html" class="nav-item">
          <span class="nav-span">关于我们</span>
        </a>  
        <span class="nav-item-wrap">
          <a href="./product.html" class="nav-item">
            <span class="nav-span">可漾产品</span>
          </a>
          <ul class="nav-list nav-list-prod">
            <!-- <li class="nav-li">红豆薏米水</li>
            <li class="nav-li">绿豆水</li>
            <li class="nav-li">五红汤</li>
            <li class="nav-li">红豆水</li>
            <li class="nav-li">红豆牛蒡茶</li> -->
          </ul>
        </span>
        <span class="nav-item-wrap nav-item-wrap2">
          <a href="./brandnew.html" class="nav-item">
            <span class="nav-span">企业动态</span>
          </a>
          <ul class="nav-list nav-list2 nav-list-dynamic">
            <li class="nav-li">
              <a href="./brandnew.html">品牌新闻</a>
            </li>
            <li class="nav-li">
              <a href="./enterpriseactivity.html">企业活动</a>
            </li>
            <li class="nav-li">
              <a href="./wonderfulmoment.html">精彩瞬间</a>
            </li>
          </ul>
        </span>
        <a href="#" class="nav-item active">
          <span class="nav-span">加入我们</span>
        </a>  
      </ul>
    </div>
  </header>
  <main>
    <div class="banner flex" id="joinbox">
      <div class="tip">
        <h1>未来展望</h1>
        <p>可漾-谷物饮品引领者。</p>
        <p>近年来，国内饮料行业呈现了新变化：碳酸饮料市场下滑，健康饮品持续升温。我国素来都有“药食同源”的传统，同时随着国民生活理念的提升，健康饮品得以蓬勃发展，未来健康饮品行业发展空间将十分广阔。</p>
      </div>
      <div class="join-box">
        <p class="title">招商加盟</p>

        <form class="layui-form" id="my-form" action="">
          <div class="layui-form-item">
            <label class="layui-form-label">您的称呼</label>
            <div class="layui-input-block">
              <input type="text" name="name"  lay-verify="required" placeholder="请输入您的姓名" autocomplete="off" class="layui-input">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">联系方式</label>
            <div class="layui-input-block">
              <input type="text" name="phone"  lay-verify="required" placeholder="请输入联系方式" autocomplete="off" class="layui-input">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">选择区域</label>
            <div class="layui-input-block">
              <input id="address" type="text" name="address"  lay-verify="required" placeholder="请选择区域" autocomplete="off" class="layui-input">
            </div>
          </div>
          <!-- <p class="submit">立即加盟</p> -->
          <div class="layui-form-item form-btn-box">
            <div class="layui-input-block">
              <button class="layui-btn" type="submit" lay-submit lay-filter="formData">立即加盟</button>
            </div>
          </div>
        </form>
        
      </div>

      <!-- 联系方式 -->
      <ul class="contact-box flex">
        <li class="contact-li">
          <p class="title phone">电话</p>
          <p class="info">0536-4629699</p>
        </li>
        <li class="contact-li">
          <p class="title hotline">服务热线</p>
          <p class="info">4006279199</p>
        </li>
        <li class="contact-li">
          <p class="title address">联系地址</p>
          <p class="info">山东省潍坊市坊子区黄旗堡街办一马路98号</p>
        </li>
        <li class="contact-li">
          <p class="title qr">微信公众号</p>
          <p class="info">
            <img src="../static/images/qr-join.png" alt="">
          </p>
        </li>
      </ul>
    </div>
    <div class="map-addr">
      <img src="../static/images/map-addr.png" alt="">
    </div>
  </main>
  <!-- 底部区域 -->
  <footer>
    <div class="footer flex">
      <ul class="link-box flex">
      <li>
        <h3>关于我们</h3>
        <p><a href="./about.html#about-box">企业介绍</a></p>
        <p><a href="./about.html#mission-box">企业使命</a></p>
        <p><a href="./about.html#roadmap">企业发展</a></p>
      </li>
      <li class="footer-prod-list">
        <!-- <h3>可漾产品</h3>
        <p><a href="#">红豆薏米水</a></p>
        <p><a href="#">绿豆水</a></p>
        <p><a href="#">五红汤</a></p>
        <p><a href="#">红豆水</a></p>
        <p><a href="#">红豆牛蒡茶</a></p> -->
      </li>
      <li>
        <h3>企业动态</h3>
        <p><a href="./brandnew.html">品牌新闻</a></p>
        <p><a href="./enterpriseactivity.html">企业活动</a></p>
        <p><a href="./wonderfulmoment.html">精彩瞬间</a></p>
      </li>
      <li>
        <h3>加入我们</h3>
        <p><a href="#joinbox">未来展望</a></p>
        <p><a href="#joinbox">招商加盟</a></p>
      </li>
    </ul>
    <ul class="addr-box">
      <h2>怕湿气，喝可漾</h2>
      <p>山东可漾饮料有限公司</p>
      <p>售后服务热线：4006279199</p>
      <p>地址：山东省潍坊市坊子区黄旗堡街办一马路</p>
      <ul class="feedback flex-start">
        <li class="qr">
          <img src="../static/images/qrcode.png" alt="">
          <span>关注微信公众号</span>
          <img class="qrcode-scan" src="../static/images/qrcode-scan.png" alt="">
        </li>
        <!-- <li class="email">
          <img src="../static/images/email.png" alt="">
          <span>投诉意见</span>
          <div class="email-feed">
            邮箱：<a href="mailto:qdcsx@163.com">qdcsx@163.com</a>
          </div>
        </li> -->
      </ul>
    </ul>
    </div>
    <div class="right"><a href="https://beian.miit.gov.cn/#/Integrated/index">鲁ICP备19040840号-1</a></div>
  </footer>
  <script src="../static/js/master.js"></script>
  <script src="../static/libs/jquery-1.10.1.min.js"></script>
  <script src="../static/libs/layui/layui.js"></script>
  
  <script>
  $(function() {
    var baseUrl = 'http://guanwang.keyangyinliao.com/api';
    // 区域
    var addressArea = '';

  // 商品列表
    var prodListData = [];
    getProdList();
    function getProdList() {
      $.ajax({
        url: baseUrl + '/ad',
        type: 'get',
        dataType: 'json',
        success: function (res) {
          if (res.code !== 200) return;
          prodListData = res.data;
          initNavProds()
        }
      })
    }

    function initNavProds() {
      var prodListHeadSubHtml = '',
      footerProdListHtml = '<h3>可漾产品</h3>';

      $.each(prodListData, function(i) {
        prodListHeadSubHtml += '<li class="nav-li" data-id=' + prodListData[i].id + '>' + prodListData[i].title + '</li>'
      
        footerProdListHtml += '<p><a href="./product.html?id=' + prodListData[i].id + '">' + prodListData[i].title + '</a></p>';
      })


      // 头部导航[产品]下的【子产品】导航
      $('.nav-list-prod').append(prodListHeadSubHtml);
      $('.nav-list-prod .nav-li').each(function(i) {
        $(this).click(function() {
          window.location.href = './product.html?id=' + $(this).attr('data-id');
        })
      })

      // footer里的产品信息
        $('.footer-prod-list').append(footerProdListHtml);
    }

  layui.config({
    base: '../static/libs/layui_plug/'
  }).extend({
    layCascader: 'layCascader'
  });
  
  layui.use(['form'], function(){
    var form = layui.form;
    var layer = layui.layer;
    
    // 提交事件
    form.on('submit(formData)', function(data){
      var field = data.field; // 获取表单字段值
      // 此处可执行 Ajax 等操作
      joinSubmit(field, layer);
      return false; // 阻止默认 form 跳转
    });
  });


  // 加盟提交
  function joinSubmit(data, layer) {
    var joinFormData = {
      name: data.name,
      phone: data.phone,
      address: $('.el-cascader input').val().split(' / ').join('')
    }
    $.ajax({
      url: baseUrl + '/channelRecruit/add',
      type: 'get',
      dataType: 'json',
      data: joinFormData,
      success: function (res) {
        if (res.code !== 200) return;
        layer.msg('提交成功！');

      }
    })
  }

initLayuiCascader();
  function initLayuiCascader() {
    layui.use('layCascader', function () {
      var layCascader = layui.layCascader;
        var id = 0;
        // 动态加载
        layCascader({
          elem: '#address',
          props: {
            lazy: true,
            lazyLoad: function(node, resolve) {
              var level = node.level;
              // 获取三级联动地址
              var nodes = [];
              // 根据层级区分是省市区
              var param = {};
              if (node.root) {
                param = {
                  level_type: 'province'
                }
              } else {
                if (level == 0) {
                  param = {
                    level_type: 'city',
                    parentid: node.value
                  }  
                } else if (level == 1) {
                  param = {
                    level_type: 'district',
                    parentid: node.value
                  }
                }
              }

              $.ajax({
                url: baseUrl + '/address/getAddress',
                type: 'get',
                dataType: 'json',
                data: param,
                success: function (res) {
                  if (res.code !== 200) return;
                  addressArea = res.data;
                  addressArea.map(function(item) {
                    let area = {
                      value: item.id,
                      label: item.areaname,
                      leaf: level >= 1
                    }
                     nodes.push(area)
                  })

                  resolve(nodes)
                }
              })
            }
          }
        });
    });
  }
})
</script>
</html>